<?php
/*
买家服务列表
*/
include('../conn.php');

// 需传参数
$type = $_REQUEST[type];
// 需传参数 end
if ($type != '') {
	$query = mysql_query("select id,name from buyer_service where type=".$_REQUEST[type]);
	$list = array();
	while ($row = mysql_fetch_assoc($query)) {
		$list[] = $row;
	}
	$arr = array('code' => 200, 'msg' => '查询成功', 'list' => $list);
}else{
	$arr = array('code' => 400, 'msg' => 'type不存在');
}

echo json_encode($arr);